<!-- LOADING DIALOG  -->

<div id="error-box" title="Error">
	<div id="error-message"></div>
	<div class="clear-both"></div>
</div>

<script>
	$("#error-box").dialog({
	    resizable: false,
	    minHeight: 160,
	    modal: true,
	    buttons: {
	        "OK" : function () {
	            $(this).dialog("close");
	        }
	    }
	});

	$("#error-box").dialog("close");
</script>

<?php if (isset($_GET['e'])){?>
	<script>
		$("#error-message").text("<?php echo ErrorHelper::getErrorMessage($_GET['e']); ?>");
		$("#error-box").dialog("open");
	</script>
<?php }?>
